package com.generate.bean;

import java.util.ArrayList;
import java.util.List;

public class DBTableBean {
	/**
	 * 表的schema
	 */
	private String schema;

	/**
	 * 表名
	 */
	private String tablename;
	
	/**
	 * 列的数量
	 */
	private Integer colSize;
	
	/**
	 * 所有Columns的合并
	 */	
	private String allColumns;
	
	/**
	 * 主键名组合
	 * 目前只能有一个--若有多个，以,分隔
	 */
	private String pmKey;
	
	/**
	 * 列明细
	 */
	private List<ColumnBean> columnBeans = new ArrayList<ColumnBean>();

	/**
	 * @return the schema
	 */
	public String getSchema() {
		return schema;
	}

	/**
	 * @param schema the schema to set
	 */
	public void setSchema(String schema) {
		this.schema = schema;
	}

	/**
	 * @return 表名
	 */
	public String getTablename() {
		return tablename;
	}

	/**
	 * @param 表名
	 */
	public void setTablename(String tablename) {
		this.tablename = tablename;
	}

	/**
	 * @return 列明细(列表)
	 */
	public List<ColumnBean> getColumnBeans() {
		return columnBeans;
	}

	/**
	 * 设置列明细(列表)
	 * @param columnBeans the columnBeans to set
	 */
	public void setColumnBeans(List<ColumnBean> columnBeans) {
		this.columnBeans = columnBeans;
	}


	/**
	 * @return the pmKey
	 */
	public String getPmKey() {
		return pmKey;
	}

	/**
	 * @param pmKey the pmKey to set
	 */
	public void setPmKey(String pmKey) {
		this.pmKey = pmKey;
	}

	/**
	 * @return the allColumns
	 */
	public String getAllColumns() {
		return allColumns;
	}

	/**
	 * @param allColumns the allColumns to set
	 */
	public void setAllColumns(String allColumns) {
		this.allColumns = allColumns;
	}

	/**
	 * @return the colSize
	 */
	public Integer getColSize() {
		return colSize;
	}

	/**
	 * @param colSize the colSize to set
	 */
	public void setColSize(Integer colSize) {
		this.colSize = colSize;
	}
}
